package com.pucong.gitee.database.backup.common.selfenum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * @author pucong
 */
@ApiModel("分块上传状态")
public enum SysFileTypeMesh implements CommonEnum<String> {

    NOT_MESH("notMesh", "待合并"),
    MESHED_PART("meshedPart", "部分合并"),
    MESHED_ING("meshedIng", "已合并，正在上传到ftp服务器");

    @ApiModelProperty("key")
    private String key;

    @ApiModelProperty("描述")
    private String desc;

    SysFileTypeMesh(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return this.key;
    }

    @Override
    public String getName() {
        return this.name();
    }

}
